<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/top.css"/>
    <link rel="stylesheet" type="text/css" href="css/left.css"/>
    <link rel="stylesheet" type="text/css" href="css/right.css"/>
</head>
<body>
<div id="container">
    <div id="header">
        <h1>博客管理系统</h1>
        <div id="login_info">
            欢迎你：<?php echo $_SESSION['admin_name']; ?>
            <a href="index.php?c=logout">退出登录</a>
        </div>
    </div>
    <div id="left">
        <ul>
            <li><a href="index.php?c=category_list">分类管理</a></li>
            <li><a href="index.php?c=article_list">文章管理</a></li>
            <li><a href="index.php?c=admin_list">管理员</a></li>
        </ul>
    </div>
    <div id="right">
        <div id="content">
            <div id="breadcrumb">
                <a href="index.php?c=article_list">首页</a> &gt;
                <a href="index.php?c=admin_list">管理员</a> &gt;
                <a href="index.php?c=admin_edit">编辑管理员</a>
            </div>
            <form action="index.php?c=admin_edit_save" method="post">
                <input type="hidden" name="admin_id" value="<?php echo $admin['admin_id']; ?>" />
                <table class="update">
                    <tr>
                        <td>姓名：</td>
                        <td><input type="text" name="admin_name" placeholder="姓名，显示使用"
                                   value="<?php echo $admin['admin_name']; ?>"/></td>
                    </tr>
                    <tr>
                        <td>邮箱：</td>
                        <td><input type="text" name="admin_email" placeholder="邮箱，登录账号"
                                   value="<?php echo $admin['admin_email']; ?>" readonly="readonly"/></td>
                    </tr>
                    <tr>
                        <td>密码：</td>
                        <td><input type="password" name="admin_password"/></td>
                    </tr>
                    <tr>
                        <td>确认密码：</td>
                        <td><input type="password" name="admin_password2"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" value="提交" class="btn"/>
                            <input type="reset" value="重置" class="btn"/>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
</body>
</html>